package com.sense.kukoo.common.repo.http.bean

import android.os.Parcelable
import kotlinx.parcelize.Parcelize

//CommentRecordDTO_1
@Parcelize
data class CommentRecordBean(

    val avatarUrl	    :String,//头像URL	string
    val channelName	    :String,//频道名称	string
    val content	        :String,//评论内容	string
    val createdAt	    :String,//创建时间	string(date-time)
    val createdBy		:Long?,//integer(int64)
    val id	            :Long,//评论ID	integer(int64)
    val remark		    :String?,//string
    var repliesNum	    :Long,//回复数量(parentId 为 0 时有值)	integer(int64)
    val replyUserId	    :Long,//回复的用户ID(parentId 不为 0 时有值)	integer(int64)
    val userId	        :Long,//用户ID	integer(int64)
    val replyUserName	:String?,//回复的用户名称	string

    var repliesList     :ArrayList<CommentRecordBean>? = null

): Parcelable {
    companion object{}

    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (javaClass != other?.javaClass) return false

        other as CommentRecordBean

        if (id != other.id) return false

        return true
    }

    override fun hashCode(): Int {
        return id.hashCode()
    }

}
